package com.liucxu.zimuzu.Model.Impl;

import com.liucxu.zimuzu.Api.ChannelService;
import com.liucxu.zimuzu.Model.Bean.ChannelResourceBean;
import com.liucxu.zimuzu.Model.IChannelResourceModel;
import com.liucxu.zimuzu.Utils.ParamsUtils;
import com.liucxu.zimuzu.Utils.ServiceFactory;

import java.util.HashMap;

import rx.Observable;

/**
 * 获取频道资源的model的接口实现类
 * Created by liukanshan on 2016/12/25.
 */

public class ChannelResourceModelImpl implements IChannelResourceModel {
    @Override
    public Observable<ChannelResourceBean> getFetchList(HashMap<String, String> maps) {
        HashMap<String,String> values=new HashMap<>();
        values= ParamsUtils.GetCommonParams();
        values.putAll(maps);
        return ServiceFactory.GetInstance().createService(ChannelService.class).getFetchList(values);
    }
}
